@extends('app')

@section('content')
    @component('form.form')
        @include('form.hidden',[
                'name'  => 'id',
                'val'   => $model->id??''
            ])

        @include('form.input',[
                'label' => '文档名称',
                'name'  => 'name',
                'val'   => $model->name??''
            ])

        @include('form.uploadImgs',[
                'label' => '图标',
                'name'  => 'icon',
                'val'   =>$model->icon??''
            ])

        @include('form.switch',[
                'label'     => '上架状态',
                'name'      => 'status',
                'text'      => '上架|下架',
                'checked'   => ($model->status==1)?true:false
            ])

        @include('form.textarea',[
                'label' => '文档描述',
                'name'  => 'description',
                'val'   => $model->description??''
            ])


        @include('form.submit',['action'=>'/doc/edit/save','reload'=>'parent.location.reload();'])

    @endcomponent
@endsection